package net.htjs.juc.thread;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class TestMultiThread {

    public static void main(String[] args) {
       new Thread(() ->{
           while(true) {
               log.info("Thread 1 running");
           }
       }, "Thread 1").start();

        new Thread(() ->{
            while(true) {
                log.info("Thread 2 running");
            }
        }, "Thread 2").start();
    }

}
